#!usr/bin/env python
# -*- coding:utf-8 _*-
"""
@author:zhengxin
@file: 009_algorithm.py
@time: 2024/12/16  14:09
# @describe:
"""

"""
题目010：暂停一秒输出，并格式化当前时间。

"""
import time

# time.localtime() 时间戳转化成时间元组
a = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(time.time()))
print(a)
time.sleep(1)

 # time.strftime()  时间元组转化成时间文本
b = time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(time.time()))
print(b)